<?php
if(  count( $this->contacts ) ):
    foreach( $this->contacts AS $contact ) : ?>
        <tr class="result selectable" id="contact_<?php echo $i++ ?>">
    	<th>
	    <span><a href="/admin/contatti/vedi/id/<?php echo $contact['contact_id']?>"><?php echo $contact['contact_firstname'] ?> <?php echo $contact['contact_lastname'] ?></a></span>
	    <div class="details">
		<h4><strong>Tel: </strong> <?php echo $contact['contact_phone'] ?></h4>
		<h4><strong>Email: </strong> <?php echo $contact['contact_email'] ?></h4>
	    </div>
    	</th>
    	<td class="actions" title="Operazioni">
            <span class="actions">
                <a id="link-location-1" class="link" href="/admin/contatti/associa/id/<?php echo $contact['contact_id'] ?>">Associa</a>
            </span>
        </td>
    	<td class="actions" title="Operazioni">
    	    <span class="actions">
		<a class="view" href="/admin/contatti/vedi/id/<?php echo $contact['contact_id'] ?>">Vedi</a>
    		<a class="edit" href="/admin/contatti/info/id/<?php echo $contact['contact_id'] ?>">Edit</a>
    		<a class="del" href="">Canc</a>
    	    </span>
    	</td>
        </tr>
<?php endforeach;
else:
    ?><tr class="result"><td colspan="5">Nessun elemento presente...</td></tr> <?php	
endif;?>